package com.mnsq.common.service;

import com.mnsq.common.bean.condition.CommonBaseCondition;
import com.mnsq.common.bean.entity.CommonEntity;
import matrix.module.common.bean.Result;

import java.util.List;

/**
 * @author 周俭
 */
public interface BaseService<T extends CommonEntity, C extends CommonBaseCondition> {
    Result queryPage(C c);

    Result<T> queryOne(C c);

    Result updateOne(T t);

    Result add(T t);

    Result del(C c);

    Result<List<T>> queryList(C c);
}
